<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="parentAreaId" name="parentAreaId" type="hidden"
							th:value="${area.parentAreaId}">
							<input id="areaId" name="areaId" type="hidden"
							th:value="${area.areaId}">
							<div class="form-group">
							<label class="col-sm-3 control-label">上级区域：</label>
							<div class="col-sm-8">
								<div id="menuTree"></div>
							</div>
						    </div>
							<div class="form-group">
								<label class="col-sm-3 control-label">行政区划代码：</label>
								<div class="col-sm-8">
									<input id="areaCode" th:value="${area.areaCode}" name="areaCode" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">行政区划简称：</label>
								<div class="col-sm-8">
									<input id="areaName" th:value="${area.areaName}" name="areaName" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">行政区划全称：</label>
								<div class="col-sm-8">
									<input id="fullName" th:value="${area.fullName}" name="fullName" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">行政区划类型：</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{area.areaType}" name="areaType" value="1" /> 省
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{area.areaType}" name="areaType" value="2" /> 市
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{area.areaType}" name="areaType" value="3" /> 区/县
									</label>
								</div>
							</div>
                            <div class="form-group">
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{area.flag}" name="flag" value="1" /> 启用
									</label>
									<label class="radio-inline"> <input type="radio"
										th:field="*{area.flag}" name="flag" value="0" /> 禁用
									</label>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>

	</div>
	<div th:include="include::footer"></div>
	<script src="/js/appjs/sys/area/edit.js"></script>
</body>

</html>
